package Day03;

public class OperDemo1 {
    public static void main(String[] args) {
        /*int a =5,b=6;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);

        int c=5,d=5;
        int e=c++;//将c++的值5赋值给e，同时c自增1变为6
        int f=++d;//将++d的值6赋值给f，同时d自增1变为6
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);

         */
        int a=1,b=1;
        a--;
        --b;
        System.out.println(a);
        System.out.println(b);

        int c=1,d=1;
        int e=c--;
        int f=--d;
        System.out.println(e);
        System.out.println(f);
    }
}
